import request from '@/utils/request'

// 获取合同监督订单列表数据
export function orderSupervisionList(query) {
  return request({
    url: '/ord/supervision/order/list',
    method: 'get',
    params: query
  })
}

// 关联合同
export function supervisionContract(data) {
  return request({
    url: '/ord/supervision/related/contract',
    method: 'post',
    data
  })
}
// 合同审批
export function supervisionSave(data) {
  return request({
    url: '/ord/supervision/save',
    method: 'post',
    data
  })
}

// 批量上传合同
export function importContract(data) {
  return request({
    url: '/ord/supervision/import/contract',
    method: 'post',
    data
  })
}
// 批量审批
export function importRemark(data) {
  return request({
    url: '/ord/supervision/import/remark',
    method: 'post',
    data
  })
}

// 合同导出---新增导出列表
export function exportSupervision(data) {
  return request({
    method: 'post',
    url: '/ord/supervision/export',
    data
  })
}
//通过订单ID获取回访管理详情列表数据
// export function visitList(id) {
//   return request({
//     url: '/ord/return/visit/list/' + id,
//     method: 'get'
//   })
// }
